﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Shop.Page.Repositories;
using Shop.Page.Models;

namespace Shop.Page.Services
{
    /// <summary>
    /// 业务逻辑层
    /// </summary>
    public class OtherAccess
    {

        Repositories.OtherAccess dal = new Repositories.OtherAccess();
        /// <summary>
        /// 获取其他信息
        /// </summary>
        /// <param name="Type"></param>
        /// <returns></returns>
        public IList<Other> GetOtherInfo()
        {
            return dal.GetOtherInfo();
        }
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="oinfo"></param>
        /// <returns></returns>
        public int UpdateOtherInfo(Other oinfo)
        {
            return dal.UpdateOtherInfo(oinfo);

        }
        /// <summary>
        /// 根据type获取信息
        /// </summary>
        /// <param name="Type"></param>
        /// <returns></returns>
        public Other GetOtherInfo(int Type)
        {
            return dal.GetOtherInfo(Type);
        }
    }
}
